package binary;

public class HexDemo {
    public static void main(String[] args) {
        int n = 0x2fd47b;
        int m = 0b1011111101010001111011;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toHexString(n));
        System.out.println(Integer.toHexString(m));
        System.out.println(n);
        System.out.println(m);
    }

}
